#include <iostream>
#include <memory>
#include "udp_server.hpp"


int main(int num,char * args[])
{
    if(num != 2)
    {
        std::cout << "./main port[prot]"<<std::endl;
        exit(1);
    }
    uint16_t port = std::stoi(args[1]);
    std::unique_ptr<udp_server> upd(new udp_server(port));

    upd->initserver();
    upd->run();
    
}